package com.atguigu.boot.pojo;

import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * spring-boot
 * 2022/9/13 23 47
 */

@ApiModel("顾客信息")
public class Customer implements Serializable {
    public Customer() {
    }

    public Customer(Integer id, String cname, Integer age, String phone, byte sex, Date birth) {
        this.id = id;
        this.cname = cname;
        this.age = age;
        this.phone = phone;
        this.sex = sex;
        this.birth = birth;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public byte getSex() {
        return sex;
    }

    public void setSex(byte sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @ApiModelProperty("主键Id")
    private Integer id;
    @ApiModelProperty("顾客名称")
    private String cname;
    @ApiModelProperty("顾客年龄")
    private Integer age;
    @ApiModelProperty("顾客手机号")
    private String phone;
    @ApiModelProperty("顾客性别")
    private byte sex;
    @ApiModelProperty("顾客生日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date birth;
}
